package com.sfh.gd.exception;

/**
 * 业务逻辑判断异常
 */
public class BusinessException  extends AbstractException{


    public BusinessException(String errorMessage) {
        super(errorMessage);
    }

    public BusinessException(int errorCode, String errorMessage) {
        super(errorCode, errorMessage);
    }

    public BusinessException(String errorMessage, Throwable throwable) {
        super(errorMessage, throwable);
    }

    public BusinessException(int errorCode, String errorMessage, Throwable throwable) {
        super(errorCode, errorMessage, throwable);
    }

    @Override
    public String toString() {
        return "ClientException{" +
                "code='" + errorCode + "'," +
                "message='" + errorMessage + "'" +
                '}';
    }
}
